package descentFly.app.radar
{
	import UIFree.ObjectEvent;
	
	import flash.events.Event;
	import flash.geom.Vector3D;

	public class df_radarEvent extends ObjectEvent {
		public static const GETPOINTS: String = 'GETPOINTS';
		
		public static const TYPE_UNKNOWN	: int = 0;
		public static const TYPE_ROBOT		: int = 1;
		public static const TYPE_NETCHIP	: int = 2;
		
		function df_radarEvent(type:String, a_obj: Object, bubbles:Boolean=false, cancelable:Boolean=false): void {
			super(type, a_obj, bubbles, cancelable);
		}
		
		public function addPoint(p: Vector3D, a_type: int): void {
			list.push({
				point	: p,
				type	: a_type
			});
		}
		
		public function get list(): Array {
			return object.list;
		}

		public function get direct(): Vector3D {
			return object.direct;
		}

		public function get angle(): Number {
			return object.angle;
		}
	}
}